package com.leave.service;

import java.util.HashMap;

import com.leave.entity.Leave;

public interface ILeaveService {
	
	int addLeave(Leave leave);
	
	HashMap<String,Object> getLeaveByPage(Integer page,Integer rows,int userId);

	Leave getLeaveByLeaveId(int id);

	int updateLeaveByLeave(Leave leave);
	
	/**
	 * 当前用户 根据流程实例Id获取请假实例
	 * @param processInstanceId
	 * @return
	 */
	Leave getLeaveByProcessInstanceId(String processInstanceId);
	
}
